package com.enlorenz.core.channel.socket.common.dstroute.category;

import java.net.Socket;

import com.enlorenz.core.channel.common.dstobj.IDstRoute;


/**
 * 普通Socket的通道
 * @author lcb
 */
public class SocketDstRoute implements IDstRoute{
	private Socket socket;
	@Override
	public Object getConnSource() {
		return socket;
	}

	@Override
	public void setConnSource(Object object) {
		this.socket=(Socket)object;
	}
	
	public String toString(){
		return socket.toString();
	}
	
	public int hashCode(){
		return socket.hashCode();
	}

	@Override
	public boolean equals(Object arg0) {
		return socket.equals(arg0);
	}
}
